﻿<UserControl
    x:Class="EString.PropertyGrid.Editors.EnumEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.PropertyGrid.Editors"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="DataTemplate1">
                <Grid>
                    <TextBlock Margin="0,0,0,4" TextWrapping="Wrap" Text="{Binding Name}" d:LayoutOverrides="Width, Height"/>
                </Grid>
            </DataTemplate>
            <DataTemplate x:Key="ItemTemplate">
                <StackPanel>
                    <TextBlock Text="{Binding Name}" />
                    <TextBlock Text="{Binding Parent}"/>
                </StackPanel>
            </DataTemplate>
            <DataTemplate x:Key="ItemTemplate1">
                <StackPanel>
                    <TextBlock Text="{Binding Name}"/>
                    <TextBlock Text="{Binding Parent}"/>
                </StackPanel>
            </DataTemplate>
            <DataTemplate x:Key="ItemTemplate2">
                <StackPanel>
                    <TextBlock Text="{Binding Name}"/>
                    <TextBlock Text="{Binding Parent}"/>
                </StackPanel>
            </DataTemplate>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" >
        <ComboBox x:ConnectionId='1' x:Name="cbo" ItemTemplate="{StaticResource ItemTemplate2}"                                         VerticalAlignment="Top" HorizontalAlignment="Left" />
    </Grid>
</UserControl>

